const context = require.context('./charts', true, /\.js$/);
let chartActions = {};
for (const key of context.keys()) {
    let data = context(key).default;
    chartActions = {
        ...chartActions,
        ...data,
    };
}
export default chartActions;
// const chartFun = function (chart) {
//     const { type, ctx, options } = chart;
//     if (chartActions[type]) {
//         chartActions[type](ctx, options);
//     }
// };
// export default chartFun;
